Import('env')

penv = env.Clone()

penv['LINKFLAGS'].append(Split('-framework CoreFoundation -framework ImageIO'))

if not 'CPPPATH' in penv:
    penv['CPPPATH'] = ['#source/']
else:
    penv['CPPPATH'].append('#source/')

pd_imageio_converter = penv.SharedLibrary(target='pd_imageio_converter', source='imageio_converter.c')

env.InstallVersionedLib(env['libdir'], pd_imageio_converter)
